<template>
	<view>
		<text class="text-grey" v-if="user.school==null">未设置</text>
		<text class="text-cyan" v-else>{{user.school}}</text>
		
		<text class="text-grey margin-left-xs" v-if="user.department==null">未设置</text>
		<text class="text-orange margin-left-xs" v-else>{{user.academy}} {{user.department}}</text>
		
		<text class="text-grey margin-left-xs" v-if="user.classes==null">未设置</text>
		<text class="text-green margin-left-xs" v-else>{{user.major}} {{user.classes}}</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		name: 'user-school',
		props: {
			user: {
				type: Object,
				default: {}
			},
		},
	}
</script>

<style>
</style>